package com.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.beans.FlowerInfo;
import com.mapper.FlowerMapper;
import com.service.FlowerService;

@Service @Transactional
public class FlowerServiceimpl implements FlowerService{
	@Resource @Autowired
	private FlowerMapper flowerMapper;

	public int add_flower(FlowerInfo flower) {
		return flowerMapper.add_flower(flower);
	}

	public FlowerInfo get_flower(int id) {
		return flowerMapper.get_flower(id);
	}

	public int del_flower(int id) {
		return flowerMapper.del_flower(id);
	}

	public int update_flower(FlowerInfo flower) {
		return flowerMapper.update_flower(flower);
	}

	public List<FlowerInfo> select_all() {
		return flowerMapper.select_all();
	}
/*
    //查询搜索数据
    public List<FlowerInfo> queryByPage(FlowerInfo flowerInfo){
        return flowerMapper.queryByPage(flowerInfo);
    }*/
//  回显数据，显示所有书籍的列表
	public List<FlowerInfo> flowerList(String flowerName) {
		return flowerMapper.flowerList(flowerName);
  }
	
}